package cn.calm.entity;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import cn.calm.commons.entity.BaseEntity;

@Entity
@Table(name="t_template")
public class Template implements BaseEntity {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@Id
	private String id;
	private String template;
	private String description;
	public String getTemplate() {
		return template;
	}

	public void setTemplate(String template) {
		this.template = template;
	}
//	public String getDisplayTemplate(){
//		return StringUtil.displayShort(template, 20);
//		
//	}

	@Override
	public Object getValue() {
		return getId();
	}

	@Override
	public String getDisplayName() {
		return "模板";
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

}
